package com.x.Servlet_11_Filter;

import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * ClassName: ServletFilter1
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.08.30 13:05
 */

@WebServlet("/ServletFilter")
public class ServletFilterTest extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.getWriter().write("ServletFilter message.");

    }
}
